{% load static %}
<link rel="stylesheet" href="{% static 'cs/style.css' %}">
{% if latest_share_list %}
    <ul>
        {% for share in latest_share_list %}
            <form action="{% url 'cs:share' share.share_id %}" method="post">
                {% csrf_token %}
                <li>{{ share.share_title }}
                    <input type="hidden" name="share_title" value="{{ share.share_title }}">
                    {% if share.share_num == 0 %}
                        <input type="submit" value="分享">
                    {% elif share.share_num == 1 %}
                        <span><strong> --分享已完成--</strong></span>
                    {% elif share.share_num == 2 %}
                        <span><strong> --分享异常结束,请重新分享，如果出现分享还是失败，请联系dongyang解决--</strong></span>
                        <input type="submit" value="重新分享">
                    {% else %}
                        <span><strong> --分享进行中--</strong></span>
                    {% endif %}
                </li>
            </form>
            <br/>
        {% endfor %}
    </ul>
{% else %}
    <p>No data are available.</p>
{% endif %}